$OpenBSD: patch-configure_in,v 1.4 2013/09/20 08:35:54 sthen Exp $
--- configure.in.orig	Sat Jun  8 15:08:51 2013
+++ configure.in	Fri Sep 20 09:35:20 2013
@@ -242,9 +242,6 @@ if test x"$LIBTOOL" = x; then
 	AC_MSG_ERROR([could not detect libtool, bailing out])
 fi
 
-dnl Check if the X libraries are installed (needed for libungif on at least Solaris)
-AC_CHECK_LIB(X11, XGetImage, XLIB="-lX11", XLIB="")
-
 AC_ARG_ENABLE(
 [freetype],
 [  --enable-freetype       Enable freetype support (default: enabled)],
@@ -352,29 +349,6 @@ AM_CONDITIONAL(USE_PNG, test x${PNGLIB} != x)
 if test -n "${PNGLIB}"; then
  	AC_DEFINE(USE_PNG, [1], [Use png library])
 fi
-
-MACHINE=`uname -m`
-case "$MACHINE" in
-"x86_64")
-	CFLAGS="$CFLAGS -Wall -fPIC"
-	;;
-"alpha")
-	CFLAGS="$CFLAGS -Wall -fPIC"
-	;;
-"ia64")
-	CFLAGS="$CFLAGS -Wall -fPIC"
-	;;
-"hppa")
-	CFLAGS="$CFLAGS -Wall -fPIC"
-	;;
-"sun4u")
-	CFLAGS="$CFLAGS -fPIC -features=extensions"
-	;;
-*)
-	CFLAGS="$CFLAGS -Wall"
-	;;
-esac
-	
 
 dnl -------------------------------------------
 dnl Byteorder check
